gsk: Improve glyph serialization
authorMatthias Clasen <mclasen@redhat.com>
Mon, 21 Dec 2020 18:08:34 +0000 (13:08 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 21 Dec 2020 18:08:34 +0000 (13:08 -0500)
commit26119af7a6bcac01cbd3999daf0e32eba2148b4d
treea66820fc1cc04bfdfef437f4293b84b11775cdae
parent478d1f71e3fef0cb94ee26201b67a45088150cc2
gsk: Improve glyph serialization

The special case for ASCII glyphs is unfortunately not
working very well, because of an oversight in pango:
When I added subpixel positioning, I made pango_shape()
default to not rounding, and make PangoLayout call
pango_shape_with_flags() and pass the rounding information
down. The upshot is that we need to use the _with_flags
variant here and tell it to round position, so it matches
what the text node contains.
gsk/gskrendernodeparser.c